package com.shanzhu.beadhouse.dao.mapper;

import com.shanzhu.beadhouse.entity.query.RemoveElderOfStaffQuery;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StaffElderMapper {
    @Update("update staff_elder set del_flag='Y' where id=#{seid}")
    void removeElderOfStaff(RemoveElderOfStaffQuery query);

    @Insert("insert into staff_elder(staff_id,elder_id,create_id,update_id) values (#{sid},#{eid},1,1)")
    void insertStaffElder(Long sid,Long eid);
}
